<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <div>
        <h1>hello</h1>
        <p>{{title}}</p>
      </div>
    </div>
    <script type="module">
      import { createApp } from "./vue.esm-browser.js";
      const app = createApp({
        // template: `<div>
        //     <h1>hello</h1>
        //     <p>{{title}}</p>
        //   </div>`,
        data: () => ({
          title: "hello jack",
        }),
      });
      // innerHTML
      app.mount("#app"); //挂载
    </script>
  </body>
</html>
